﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nox.Amuse.Model
{
    /// <summary>
    /// Defines a command recorded in the history
    /// </summary>
    public class CommandHistoryItem
    {
        /// <summary>
        /// The string that was in the input box when the command was recorded
        /// </summary>
        public string OriginalString { get; private set; }

        /// <summary>
        /// The date and time it was added to the command history
        /// </summary>
        public DateTime TimeRecorded { get; private set; }

        /// <summary>
        /// Indicates if the command was placed in the history without being sent to the server
        /// </summary>
        public bool IsUnsent { get; private set; }

        public CommandHistoryItem(string text, bool isunsent = false)
        {
            OriginalString = text;
            IsUnsent = isunsent;
            TimeRecorded = DateTime.Now;
        }

    }
}
